import store from "@/store";

export default [
    {
        path: "admins",
        name: "AdminadminsList",
        component: () => import("@/views/admins/list"),
        meta: { title: "管理员列表", authLogin: true },
    },
    {
        path: "adminsadd",
        name: "AdminadminsAdd",
        component: () => import("@/views/admins/add"),
        meta: { title: "添加管理员", authLogin: true },
    },
    {
        path: "adminsupdt",
        name: "AdminadminsUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "adminsupdtself",
        name: "AdminadminsUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true },
    },
    {
        path: "yonghu",
        name: "AdminyonghuList",
        component: () => import("@/views/yonghu/list"),
        meta: { title: "用户列表", authLogin: true },
    },
    {
        path: "yonghuadd",
        name: "AdminyonghuAdd",
        component: () => import("@/views/yonghu/add"),
        meta: { title: "添加用户", authLogin: true },
    },
    {
        path: "yonghuupdt",
        name: "AdminyonghuUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/yonghu/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "yonghuupdtself",
        name: "AdminyonghuUpdtSelf",
        props: (route) => ({ id: store.state.user.session.id }),
        component: () => import("@/views/yonghu/updt"),
        meta: { title: "编辑用户", authLogin: true },
    },
    {
        path: "yonghudetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminyonghuDetail",
        component: () => import("@/views/yonghu/detail"),
        meta: { title: "用户详情", authLogin: true },
    },
    {
        path: "rizhiguanli",
        name: "AdminrizhiguanliList",
        component: () => import("@/views/rizhiguanli/list"),
        meta: { title: "日志管理列表", authLogin: true },
    },
    {
        path: "rizhiguanli_tianjiaren",
        name: "AdminrizhiguanliListtianjiaren",
        component: () => import("@/views/rizhiguanli/list-tianjiaren"),
        meta: { title: "日志管理列表", authLogin: true },
    },
    {
        path: "rizhiguanliadd",
        name: "AdminrizhiguanliAdd",
        component: () => import("@/views/rizhiguanli/add"),
        meta: { title: "添加日志管理", authLogin: true },
    },
    {
        path: "rizhiguanliupdt",
        name: "AdminrizhiguanliUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/rizhiguanli/updt"),
        meta: { title: "编辑日志管理", authLogin: true },
    },
    {
        path: "rizhiguanlidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminrizhiguanliDetail",
        component: () => import("@/views/rizhiguanli/detail"),
        meta: { title: "日志管理详情", authLogin: true },
    },
    {
        path: "jigouxinxi",
        name: "AdminjigouxinxiList",
        component: () => import("@/views/jigouxinxi/list"),
        meta: { title: "机构信息列表", authLogin: true },
    },
    {
        path: "jigouxinxi_tianjiaren",
        name: "AdminjigouxinxiListtianjiaren",
        component: () => import("@/views/jigouxinxi/list-tianjiaren"),
        meta: { title: "机构信息列表", authLogin: true },
    },
    {
        path: "jigouxinxiadd",
        name: "AdminjigouxinxiAdd",
        component: () => import("@/views/jigouxinxi/add"),
        meta: { title: "添加机构信息", authLogin: true },
    },
    {
        path: "jigouxinxiupdt",
        name: "AdminjigouxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/jigouxinxi/updt"),
        meta: { title: "编辑机构信息", authLogin: true },
    },
    {
        path: "jigouxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminjigouxinxiDetail",
        component: () => import("@/views/jigouxinxi/detail"),
        meta: { title: "机构信息详情", authLogin: true },
    },
    {
        path: "guandaoxinxi",
        name: "AdminguandaoxinxiList",
        component: () => import("@/views/guandaoxinxi/list"),
        meta: { title: "管道信息列表", authLogin: true },
    },
    {
        path: "guandaoxinxiadd",
        name: "AdminguandaoxinxiAdd",
        component: () => import("@/views/guandaoxinxi/add"),
        meta: { title: "添加管道信息", authLogin: true },
    },
    {
        path: "guandaoxinxiupdt",
        name: "AdminguandaoxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/guandaoxinxi/updt"),
        meta: { title: "编辑管道信息", authLogin: true },
    },
    {
        path: "guandaoxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminguandaoxinxiDetail",
        component: () => import("@/views/guandaoxinxi/detail"),
        meta: { title: "管道信息详情", authLogin: true },
    },
    {
        path: "xiangmuxinxi",
        name: "AdminxiangmuxinxiList",
        component: () => import("@/views/xiangmuxinxi/list"),
        meta: { title: "项目信息列表", authLogin: true },
    },
    {
        path: "xiangmuxinxiadd",
        name: "AdminxiangmuxinxiAdd",
        component: () => import("@/views/xiangmuxinxi/add"),
        meta: { title: "添加项目信息", authLogin: true },
    },
    {
        path: "xiangmuxinxiupdt",
        name: "AdminxiangmuxinxiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/xiangmuxinxi/updt"),
        meta: { title: "编辑项目信息", authLogin: true },
    },
    {
        path: "xiangmuxinxidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminxiangmuxinxiDetail",
        component: () => import("@/views/xiangmuxinxi/detail"),
        meta: { title: "项目信息详情", authLogin: true },
    },
    {
        path: "chuanganqi",
        name: "AdminchuanganqiList",
        component: () => import("@/views/chuanganqi/list"),
        meta: { title: "传感器列表", authLogin: true },
    },
    {
        path: "chuanganqiadd",
        name: "AdminchuanganqiAdd",
        component: () => import("@/views/chuanganqi/add"),
        meta: { title: "添加传感器", authLogin: true },
    },
    {
        path: "chuanganqiupdt",
        name: "AdminchuanganqiUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/chuanganqi/updt"),
        meta: { title: "编辑传感器", authLogin: true },
    },
    {
        path: "chuanganqidetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminchuanganqiDetail",
        component: () => import("@/views/chuanganqi/detail"),
        meta: { title: "传感器详情", authLogin: true },
    },
    {
        path: "gongyeguandaomoxing",
        name: "AdmingongyeguandaomoxingList",
        component: () => import("@/views/gongyeguandaomoxing/list"),
        meta: { title: "工业管道模型列表", authLogin: true },
    },
    {
        path: "gongyeguandaomoxingadd",
        name: "AdmingongyeguandaomoxingAdd",
        component: () => import("@/views/gongyeguandaomoxing/add"),
        meta: { title: "添加工业管道模型", authLogin: true },
    },
    {
        path: "gongyeguandaomoxingupdt",
        name: "AdmingongyeguandaomoxingUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/gongyeguandaomoxing/updt"),
        meta: { title: "编辑工业管道模型", authLogin: true },
    },
    {
        path: "gongyeguandaomoxingdetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdmingongyeguandaomoxingDetail",
        component: () => import("@/views/gongyeguandaomoxing/detail"),
        meta: { title: "工业管道模型详情", authLogin: true },
    },
    {
        path: "chuanganqimoxing",
        name: "AdminchuanganqimoxingList",
        component: () => import("@/views/chuanganqimoxing/list"),
        meta: { title: "传感器模型列表", authLogin: true },
    },
    {
        path: "chuanganqimoxingadd",
        name: "AdminchuanganqimoxingAdd",
        component: () => import("@/views/chuanganqimoxing/add"),
        meta: { title: "添加传感器模型", authLogin: true },
    },
    {
        path: "chuanganqimoxingupdt",
        name: "AdminchuanganqimoxingUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/chuanganqimoxing/updt"),
        meta: { title: "编辑传感器模型", authLogin: true },
    },
    {
        path: "chuanganqimoxingdetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminchuanganqimoxingDetail",
        component: () => import("@/views/chuanganqimoxing/detail"),
        meta: { title: "传感器模型详情", authLogin: true },
    },
    {
        path: "baojing",
        name: "AdminbaojingList",
        component: () => import("@/views/baojing/list"),
        meta: { title: "报警列表", authLogin: true },
    },
    {
        path: "baojingadd",
        name: "AdminbaojingAdd",
        component: () => import("@/views/baojing/add"),
        meta: { title: "添加报警", authLogin: true },
    },
    {
        path: "baojingupdt",
        name: "AdminbaojingUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/baojing/updt"),
        meta: { title: "编辑报警", authLogin: true },
    },
    {
        path: "baojingdetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminbaojingDetail",
        component: () => import("@/views/baojing/detail"),
        meta: { title: "报警详情", authLogin: true },
    },
    {
        path: "shishijiance",
        name: "AdminshishijianceList",
        component: () => import("@/views/shishijiance/list"),
        meta: { title: "实时监测列表", authLogin: true },
    },
    {
        path: "shishijianceadd",
        name: "AdminshishijianceAdd",
        component: () => import("@/views/shishijiance/add"),
        meta: { title: "添加实时监测", authLogin: true },
    },
    {
        path: "shishijianceupdt",
        name: "AdminshishijianceUpdt",
        props: (route) => ({ id: route.query.id }),
        component: () => import("@/views/shishijiance/updt"),
        meta: { title: "编辑实时监测", authLogin: true },
    },
    {
        path: "shishijiancedetail",
        props: (route) => ({ id: route.query.id }),
        name: "AdminshishijianceDetail",
        component: () => import("@/views/shishijiance/detail"),
        meta: { title: "实时监测详情", authLogin: true },
    },
];
